﻿using CYZH.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CYZH.Service.Drought
{
    public class NDVIService
    {
        /// <summary>
        /// 计算ndvi MOD09Q1
        /// </summary>
        /// <param name="infiles">MOD09Q1数据</param>
        /// <param name="shpfile">范围</param>
        /// <param name="saveRaster">保存数据</param>
        /// <returns></returns>
        public int CalculateNDVI(List<string> infiles, string shpfile, string saveRaster)
        {
            string msg;
            int i = CYZHLibrary.HZ.NDVI.CalculateNDVI(infiles, shpfile, saveRaster, out msg);
            Logger.Singleton.Debug(msg);
            return i;
        }
    }
}
